#ifndef __SCENE0910_H__
#define __SCENE0910_H__

#include "cocos2d.h"
#include "Scene0917.h"
#include <cocos-ext.h>

USING_NS_CC;
USING_NS_CC_EXT;

class Scene0910 : public Scene, TableViewDelegate, TableViewDataSource
{
public:
	static Scene *createScene();
	virtual bool init();
	Size visibleSize;
	Sprite *tablebg;
	int tableCellHeight = 100;
	int tableCellWidth = 100;
	CREATE_FUNC(Scene0910);
private:
	Array *menuArray;
	//表格某一项被点击
	virtual void tableCellTouched(TableView* table, TableViewCell* cell);

	//表格1某一项的尺寸
	virtual Size tableCellSizeForIndex(TableView* table, ssize_t idx);

	//表格某一项的UI布局
	virtual TableViewCell* tableCellAtIndex(TableView *table, ssize_t idx);
	//表格有多少项
	virtual ssize_t numberOfCellsInTableView(TableView *table);
};
#endif